package fun.lifepoem.store.task;

import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import fun.lifepoem.store.service.ShareService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author Yiwyn
 * @create 2023/3/11 14:53
 */
@Component
public class StoreTask {

    @Resource
    private ShareService shareService;

    @XxlJob("expiryFile")
    public void expiryFile() {
        XxlJobHelper.log("处理未过期分享 == 开始");
        shareService.expiryFile();
        XxlJobHelper.log("处理未过期分享 == 结束");
    }

}
